'use strict';

import React from 'react';

import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
    Image
} from 'react-native';

class myapplication extends React.Component {

//http://img0.imgtn.bdimg.com/it/u=4112262575,1835470583&fm=21&gp=0.jpg

  render() {

    let pic = {
      //uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg'
      uri: 'http://www.wyzu.cn/uploadfile/2012/0930/20120930120433397.jpg'
    };
    return (
        <Image source={pic} style={{width: 193, height: 110}} />
    );


    //test001
    /*return (
      <View style={styles.container}>
        <Text style={styles.hello}>itchen测试demo</Text>
        <Text style={styles.hello}>我是第二行文字</Text>
        <Text style={styles.hello}>我是第三行文字</Text>
      </View>
    )*/





  }
}


var styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
  hello: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
});




//定义一个新的组件Component
AppRegistry.registerComponent('myapplication', () => myapplication);
